package com.wxr.mapper;

import com.wxr.pojo.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

//次注解含义是表示是一个mybatis的mapper类
@Mapper
@Repository
public interface DeptMapper {


    List<Dept> queryDeptList();

    Dept queryDeptById(int id);

    int addDept(Dept dept);


    int updateDept(Dept dept);


    int deleteDept(int id);

}
